//
//  ShakeAlertView.m
//  TY_MotorRemoteControl
//
//  Created by xiaomei su on 2018/4/18.
//  Copyright © 2018年 xuweixin. All rights reserved.
//

#import "ShakeAlertView.h"

@implementation ShakeAlertView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)awakeFromNib{
    [super awakeFromNib];
    self.policeLabel.text = NSLocalizedString(@"police", @"报警中");
    [self.unLockingButton setTitle:NSLocalizedString(@"unLocking", @"开锁") forState:UIControlStateNormal];
    
}
    
- (IBAction)unLockAction:(UIButton *)sender {
    if (self.delegate  && [self.delegate respondsToSelector:@selector(ShakeAlertViewUnlockClickEven)]) {
        [self.delegate ShakeAlertViewUnlockClickEven];
    }
}

@end
